﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VRacer.Exceptions
{
    public class RemoteGameWrongTrackException : UIException, IVRacerException
    {
        public RemoteGameWrongTrackException(Exception innerException)
            : this("Server game is using track that your game doesn't know. Update your copy.", innerException)
        {

        }

        public RemoteGameWrongTrackException(string message, Exception innerException)
            : base(message, innerException)
        {
            Title = "Unknown track";
            Code = 2;
            Details = "";
        }

        #region IVRacerException Members

        public bool Critical
        {
            get { return false; }
        }

        #endregion
    }
}
